package com.cashmama.market.api.application.controller.order.request;

import com.cashmama.market.api.infras.exception.ApplicationException;
import com.cashmama.market.api.infras.utils.StringUtils;
import com.fqgj.common.api.ParamsObject;

/**
 * @program: market-api
 * @description
 * @author: frank
 * @create: 2020-12-29 10:40
 **/
public class ServiceFeeRequest extends ParamsObject {

    /**
     * 服务费支付金额
     */
    private String payAmount;

    public String getPayAmount() {
        return payAmount;
    }

    public ServiceFeeRequest setPayAmount(String payAmount) {
        this.payAmount = payAmount;
        return this;
    }

    @Override
    public void validate() {
        if(StringUtils.isEmpty(payAmount)){
            throw new ApplicationException("payAmount can not be empty");
        }

    }
}
